package com.ns.school.service.edu.impl;

import com.ns.school.po.edu.Coursel;
import com.ns.school.mapper.edu.DropCourseMapper;
import com.ns.school.service.edu.DropCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DropCourseServiceImpl implements DropCourseService {
    @Autowired
    private DropCourseMapper dropCourseMapper;

    @Override
    public List<Coursel> seledCourse(String cname, Integer sid) {
        return dropCourseMapper.seledCourse(cname, sid);
    }

    @Override
    public int dropcou(Integer sid, Integer cid) {
        return dropCourseMapper.dropcou(sid, cid);
    }

    @Override
    public int updatecou(Integer cid) {
        return dropCourseMapper.updatecou(cid);
    }
}
